import pickle
import base64
import re

string = '123456'

reg = '.(23).'

data = re.compile(reg).match(string)
print(data.group())